﻿/* Content -> Activity Status */

.status {
    position: relative;
}

.cq-activity-status {
    float: left;
    margin: 5px 0 0 10px;
}

.cq-activity-status::after {
    content: '';
    opacity: 0;
    transition: opacity 1s;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 3px;
    right: -2px;
    border: 2px solid rgba(56, 192, 73, 1);
}

.executing {
    .cq-activity-status::after {
        opacity: 1;
        
        border-top: 2px solid rgba(56, 192, 73, 0.3);
        border-right: 2px solid rgba(56, 192, 73, 0.3);
        border-bottom: 2px solid rgba(56, 192, 73, 0.3);
        border-left: 2px solid rgba(56, 192, 73, 1);
        
        -webkit-transform: translateZ(0);
        -ms-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-animation: load8 1.1s infinite linear;
        animation: load8 1.1s infinite linear;

        cursor: pointer;
    }

    .cq-activity-status {
        margin-top: 6px;
        margin-left: 11px;
    }

    .cq-activity-status .cq-activity-status-primary,
    .cq-activity-status .cq-activity-status-secondary {
        height: 8px;
        width: 8px;
        border-radius: 4px;
        -moz-border-radius: 4px;
        -ms-border-radius: 4px;
        -webkit-border-radius: 4px;
    }
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.cq-activity-status {
    transition: margin-top 1s, margin-left 1s;
}

.cq-activity-status .cq-activity-status-primary,
.cq-activity-status .cq-activity-status-secondary {
    float: left;
    height: 10px;
    width: 10px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -webkit-border-radius: 5px;
    transition: background 1s, width 1s, height 1s, background 1s, border-radius 1s, border-width 1s;
}

.cq-activity-status .cq-activity-status-secondary {
    width: 0;
}

.cq-activity-status.active .cq-activity-status-primary {
    background: #38C049;
}

.cq-activity-status.paused .cq-activity-status-primary {
    background: #E5D45B;
}

.cq-activity-status.complete .cq-activity-status-primary {
    background: #CCCCCC;
}

.cq-activity-status.mixed {
    .cq-activity-status-secondary {
        display: block;
        width: 5px;
        background: #E5D45B;
        border-radius: 0 5px 5px 0;
        -moz-border-radius: 0 5px 5px 0;
        -ms-border-radius: 0 5px 5px 0;
        -webkit-border-radius: 0 5px 5px 0;
    }

    .cq-activity-status-primary {
        width: 5px;
        background: #38C049;
        border-radius: 5px 0 0 5px;
        -moz-border-radius: 5px 0 0 5px;
        -ms-border-radius: 5px 0 0 5px;
        -webkit-border-radius: 5px 0 0 5px;
    }
}